package net.microfigure.mapper;

import net.microfigure.model.ZcPolicy;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.mapper.BaseMapper;

/**
 * <p>
  * 慢性病政策表 Mapper 接口
 * </p>
 *
 * @author 林景锋
 * @since 2018-06-15
 */
@Mapper
public interface ZcPolicyMapper extends BaseMapper<ZcPolicy> {

	@Select("select runyear,max_line AS maxLine,run_rate AS runRate,id from zc_policy where runyear = #{currentYear}")
	ZcPolicy selectRunyearEqualCurrentYear(int currentYear);

}